package com.yfbao.horizon.docker.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;


@Data
@TableName("dubbo_rollback")
public class DubboRollBack  {

    @TableId(value = "id",type= IdType.INPUT)
    private Long id;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "rollback_type")
    private String rollBackType;

    @TableField(value = "serial_number")
    private Long serialNumber;

    @TableField( value = "class_name",exist = true )
    private String className = "";

    @TableField( value = "method",exist = true )
    private String method = "";

    @TableField( value = "rollback_data",exist = true )
    private String rollBackData = "";

    @TableField( value = "retry_time",exist = true )
    private Integer retryTime = 0;

    /**
     * 0 未回滚，1回滚失败，2回滚成功
     */
    @TableField( value = "rollback_status",exist = true )
    private int rollbackStatus = 0;

}
